</head>
<body>
<div class="f-sep10"></div>
<div class="f-sep10"></div>
<div class="m-hd m-tabs">
  <h2 class="u-tt">{$action_name}管理员</h2>
  <ul id="tabs">
    <li> <a class="z-crt" href="#tab1"><span class="icon">&#xf05a;</span> 基本信息</a></li>
	<li><a href="{$url(user_list/index)}"><span class="icon">&#xf101;</span> 管理员列表</a></li>
  </ul>
</div>
<div class="f-sep10"></div>
<div class="m-form">
  <form action="<?php echo url('user_list/'.$action.'_save'); ?>" method="post" id="form">
    <fieldset>
      <div class="formitm">
        <label class="lab" >管理组：</label>
        <div class="ipt">
          <select name="gid" id="gid">
            <!--foreach:{$user_group $vo}-->
            <option value="{$vo.gid}">{$vo.name}</option>
            <!--{/foreach}-->
          </select>
          <span class="Validform_checktip"></span> </div>
      </div>
      <div class="formitm">
        <label class="lab" >帐号：</label>
        <div class="ipt">
          <input name="username" type="text" class="u-ipt" value="{$info.username}" datatype="s1-20" errormsg="帐号至少1~20个字符！" />
          <span class="Validform_checktip"></span> </div>
      </div>
      <div class="formitm">
        <label class="lab" >昵称：</label>
        <div class="ipt">
          <input name="nicename" type="text" class="u-ipt" value="{$info.nicename}" datatype="s1-20" errormsg="昵称至少1~20个字符！" />
          <span class="Validform_checktip"></span> </div>
      </div>
      <div class="formitm">
        <label class="lab" >密码：</label>
        <div class="ipt">
          <input name="password" type="password" class="u-ipt" />
          <span class="Validform_checktip"></span> </div>
      </div>
      <div class="formitm">
        <label class="lab" >确认密码：</label>
        <div class="ipt">
          <input name="password2" type="password" class="u-ipt"  />
          <span class="Validform_checktip"></span> </div>
      </div>
      <div class="formitm">
        <label class="lab" >状态：</label>
        <div class="ipt">
          <?php if(!isset($info['status'])){ $info['status']=1; } ?>
          <input name="status" type="radio" value="1" <!--if:{$info['status']==1}--> checked="checked" <!--{/if}--> />
          正常&nbsp;&nbsp; <input name="status" type="radio" value="0" <!--if:{$info['status']==0}--> checked="checked" <!--{/if}--> />
          禁用 <span class="Validform_checktip"></span> </div>
      </div>
      <div class="formitm formitm-1">
        <button class="u-btn" id="submit" type="submit">保存修改</button>
        <button class="u-btn u-btn-c4" id="reset" type="button">重置</button>
        <span id="tip" class="load"></span> </div>
    </fieldset>
    <input name="uid" type="hidden" value="{$info.uid}" />
  </form>
</div>
</body>
<script>
Do.ready('base','form','tabs', function() {
	saveform('{$url(user_list/index)}');
	tabs();
});
</script>